Fill Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Replaces each item in a list with a given value. The list does not change in size.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static void Fill<T>(
	IList<T> list,
	T value
)
Visual Basic (Declaration)
Public Shared Sub Fill(Of T) ( _
	list As IList(Of T), _
	value As T _
)
Visual C++
public:
generic<typename T>
static void Fill (
	IList<T>^ list, 
	T value
)

Parameters

list
IList<(Of <T>)>
The list to modify.
value
T
The value to fill with.

Type Parameters

T
The type of items in the list.

Exceptions

ExceptionCondition
System..::ArgumentExceptionlist is a read-only list.
System..::ArgumentNullExceptionlist is null.

See Also